package com.nut.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;
import java.util.List;

/**
 * @ author : HyoJoo-W
 * @ createDate : 2021-04-20 20:12
 * @ Description : User entity层
 */

@Data
public class User
{
    private int id;
    private String name;
    private String gender;
    private String password;
    private String email;

    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date birthday;

    //该用户的文章列表
    private List<Article>articles;
}
